package com.yx.changdao.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yx.changdao.common.entity.CommunityBuild;
import com.yx.changdao.common.entity.Problem;
import com.yx.changdao.common.exception.AlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @Description: <br/>
 * 社区建筑物表
 * <p>
 * <br/>
 * @Auther: flexible
 * @create 2020/04/02 13:47
 */
public interface CommunityBuildService extends IService<CommunityBuild> {
    /**
     * 根据网格Id查询建筑物
     */
   List<CommunityBuild> getBuildByGridId(Integer RegionId);

    /**
     * 删除房屋
     * @param id
     * @return
     */
    @Transactional(rollbackFor = {Exception.class})
   boolean removeBuildDetail(Integer id);

    /**
     * 建筑导入
     */
    Map<String,Object> checkAndSave(MultipartFile communityBuild) throws AlertException;

    /**
     * 商铺导入
     */
    Map<String,Object> checkAndSaveShop(MultipartFile communityBuildShop) throws AlertException;

    /**
     * 楼栋导入
     */
    Map<String,Object> checkAndSaveDep(MultipartFile communityBuildDep) throws AlertException;


    /**
     * 根据楼id查楼名和网格名
     */
    Map<String, Object> getGridNameByBuildId(String buildCode) throws AlertException;
}
